<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>用户列表</h1>
    <table>
        <tr>
            <td>cadId</td>
            <td>carName</td>
            <td>carPrice</td>
            <td>carMileage</td>
            <td>carBuyTime</td>
            <td>carType</td>
            <td>carStatus</td>
            <td>操作</td>
        </tr>
        <tr th:each="list:${carList}">
            <td th:text="${list.carId}">cadId</td>
            <td th:text="${list.carName}">carName</td>
            <td th:text="${list.carPrice}">carPrice</td>
            <td th:text="${list.carMileage}">carMileage</td>
            <td th:text="${#dates.format(list.carBuyTime,'yyyy-MM-dd')}">carBuyTime</td>
            <td th:text="${list.carType}">carType</td>
            <td th:text="${list.carStatus}">carStatus</td>
            <td>
                <a th:href="@{/cars/get/{carId}(carId=${list.carId})}">修改</a>
                <a th:href="@{/cars/del/{carId}(carId=${list.carId})}">删除</a>
                <a th:href="@{/cars/add}">添加</a>
            </td>
        </tr>
    </table>
</body>
</html>